<template>
  <div class="ok">
      <group title="修改支付密码">
      <x-input title="请输入原始密码" v-model="Changepwd.postData.oldTradePassword"  placeholder="请输入原始密码"></x-input>
      <x-input v-model="Changepwd.postData.newTradePassword" title="请输入新密码  " placeholder="请输入新密码"></x-input>
      <group title="确认"><x-button class="confirm" @click.native="gobtn" type="primary">提交</x-button></group>
      </group>
  </div>
</template>
<style>
  .confirm{
    width:80%;
    margin: 30px auto;
  }
  </style>
<script>
  import { Divider,XInput,XButton,Group } from 'vux'

  export default {
    data(){
      return {
        a:11113322,

        Changepwd:{
          actionName:"ModifyTradePassword",
          url:'baseapi',
          postData: {
            newTradePassword:"",
            oldTradePassword:"",
          }
        },
      }
    },
    methods:{
      gobtn(){
        this.$store.commit('restful_api',this.Changepwd)
      }
    },
    components:{
      Divider,
      XInput,
      XButton,Group
    }
  }
  </script>
